package com.weitu.permission.dictionaryData.service;

import com.weitu.permission.dictionaryData.entity.DictionaryData;

import java.util.List;
import java.util.Map;

/**
 * Created by smp on 2017/6/15.
 */
public interface DictionaryDataService {

    int queryCount(Map<String,Object> map);

    List<DictionaryData> queryList(Map<String,Object> map);
    List<DictionaryData> queryTreeList(Map<String,Object> map);
    int queryCountByCode(String code);
    int insert(DictionaryData dictionaryData);
    int delete(String id);
    DictionaryData queryById(String id);
    int update(DictionaryData dictionaryData);

    List<DictionaryData> queryDictionaryDataByParentCode(String code);
    List<DictionaryData> queryListAll(String pId);


    DictionaryData queryDictionaryDataByCode(String code);
}
